package beanstao.util.type.base;

import java.util.Date;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

public class Datetime2SqlDate extends Castor<Date, java.sql.Date>
{

	@Override
	public java.sql.Date cast(Date src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return new java.sql.Date(src.getTime());
	}

}
